package com.sxt.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "goods")

public class Goods implements Serializable {
    /**
    * 商品编号
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer goodsId;

    /**
    * 商品名称
    */
    @TableId(value = "goodsName")
    private String goodsName;

    /**
    * 商品图片
    */
    @TableId(value = "goodsImg")
    private String goodsImg;

    /**
    * 状态1上架  0下架
    */
    @TableId(value = "status")
    private String status;

    /**
    * 销售数量
    */
    @TableId(value = "saleNum")
    private Integer saleNum;

    /**
    * 类型ID
    */
    @TableId(value = "typeId")
    private Integer typeId;

    /**
    * 商品价格
    */
    @TableId(value = "goodsPrice")
    private Double goodsPrice;

    /**
    * 创建时间
    */
    @TableId(value = "createTime")
    private Date createTime;

    /**
    * 更新时间
    */
    @TableId(value = "updateTime")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}